package dao;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;

import org.eclipse.jdt.annotation.NonNull;

import bean.User;

public interface UserDAO {

    PreparedStatement verifyUser(@NonNull PreparedStatement ps, @NonNull User user) throws SQLException;

    boolean insert(@NonNull User user) throws SQLException;

    boolean update(@NonNull User user) throws SQLException;

    List<User> selectAll() throws SQLException;

    User select(int userId) throws SQLException;

    boolean delete(int userId) throws SQLException;

}